import Base from "./base";
const api = new Base();
// 新增轮播图
export const addBanner = (data: any) => api.post("/sysBanner", data);
// 修改轮播图
export const updateBanner = (data: any) =>
  api.patch(`/sysBanner/${data.id}`, data);
// 删除轮播图
export const delBanner = (id: string) => api.delete(`/sysBanner/${id}`);
// 查询轮播图列表
export const getBannerList = () =>
  api.get("/sysBanner/list");
// 查询轮播图
export const getBanner = (id: string) => api.get(`/sysBanner/${id}`);
